import java.awt.*;

public abstract class EObject {
    static int N = 1;//北
    static int S = -1;//南
    static int W = -2;//西
    static int E = 2;//东
    public int x, y;
    protected int nowDirection = E;
    protected int futureDirection = E;
    protected int tempposX;
    protected int tempposY;

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public EObject(int x, int y, int tempposX, int tempposY, int nowDirection, int futureDirection) {
        this.x = x;
        this.y = y;
        this.tempposX = tempposX;
        this.tempposY = tempposY;
        this.nowDirection = nowDirection;
        this.futureDirection = futureDirection;
    }

    protected abstract void tick();

    public abstract void render(Graphics g);
}
